package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

public class Order {
    private Long id;                  // 订单id
    private String number;            // 订单号
    private Integer status;           // 订单状态 
    private Integer payStatus;        // 支付状态
    private BigDecimal amount;        // 订单金额
    private LocalDateTime orderTime;  // 下单时间
    private LocalDateTime checkoutTime; // 结账时间
    private Long userId;              // 下单用户id
    private String productName;
    private BigDecimal orderAmount;
    private String paymentMethod;
    private String orderStatus;
    private String orderSource;
    private String contactPerson;
    private String contactPhone;
    private String customerName;
    private String appointmentDate;    // 预约日期
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String materialStatus;    // 材料状态
    private String visaStatus;        // 签证所处节点
    
    // 订单状态
    public static final String PENDING_PAYMENT = "待付款";
    public static final String PAID = "已付款";
    public static final String CANCELLED = "已取消";
    public static final String REFUNDED = "已退款";
}